package at.horario.service.impl;

import at.horario.dao.RoleDao;
import at.horario.model.Role;
import at.horario.service.RoleManager;

import java.util.HashSet;

/**
 * Created by IntelliJ IDEA.
 * User: at
 * Date: 16/Set/2007
 * Time: 11:56:25
 * To change this template use File | Settings | File Templates.
 */
public class RoleManagerImpl extends GenericManagerImpl<Role, Long> implements RoleManager {

    public RoleManagerImpl(final RoleDao roleDao) {
        super(roleDao);
    }

    public HashSet<Role> getRoles() {
        HashSet<Role> roles = new HashSet<Role>();
        roles.addAll(getAll());
        return roles;
    }
}